package com.feisuanyz.lyweb01.pojo.query;

import jakarta.validation.constraints.Min;
import lombok.Data;
import jakarta.validation.constraints.NotNull;

/**
 * 合作购买查询对象
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class CooperativePurchaseQuery {

    @Min(value = 1, groups = { QueryGroup.class }, message = "页码必须大于等于1")
    private int pageIndex;

    @Min(value = 1, groups = { QueryGroup.class }, message = "每页大小必须大于等于1")
    private int pageSize;

    @NotNull(groups = { QueryGroup.class }, message = "合作购买信息ID不能为空")
    private Integer purchaseId;

    private String keyword;
}
